<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2018\6\8 0008
  Time: 19:22
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <jsp:include page="/static/common/common.jsp"></jsp:include>
    <script type="text/javascript" src="/static/js/dataDetail.js"></script>
</head>
<body>
<%--此处必须设计为双标签,否则不能作为容器储存数据--%>

<div id="dtb">
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-add'" onclick="dadd()">新增</a>
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-edit'" onclick="dedit()">编辑</a>
    <a href="#" class="easyui-linkbutton" iconCls="icon-remove" onclick="ddel()">撤销</a>
    <a href="#" class="easyui-linkbutton" iconCls="icon-reload" onclick="dreload()">刷新</a>
</div>
<div id="dform_btn">
    <a href="#" class="easyui-linkbutton" iconCls="icon-save" onclick="dsave()">保存</a>
    <a href="#" class="easyui-linkbutton" iconCls="icon-cancel" onclick="dcancel()">取消</a>
</div>

<%--新增,编辑 弹窗--%>
<div id="d_dialog">
    <%--切记提交表单的方式--%>
    <form id="d_form" method="post" data-url="/employee/saveOrUpdate.do">
        <input type="hidden" name="id"/>
        <table align="center" style="margin-top: 15px">
            <tr>
                <td>明细名称:</td>
                <td>
                    <input name="detailName" class="easyui-textbox">
                </td>
            </tr>
            <tr>
                <td>明细简介:</td>
                <td>
                    <input name="detailText" class="easyui-textbox">
                </td>
            </tr>
            <tr>
                <td>所属目录:</td>
                <td>
                    <input name="data.id" class="easyui-combobox"
                           data-options="panelHeight:'auto',valueField:'id',textField:'dataName',
                                url:'/dataDictionary/selectAll.do'">
                </td>
            </tr>
        </table>
    </form>
</div>
</body>
</html>
